<template>
  <div class="item" @click="routeChange">
     <span class="left"><slot name="left"></slot></span>
     <span class="center"><slot name="center"></slot></span>
     <span class="right"><slot name="right"></slot></span>
  </div>
</template>

<script>
  export default{
    name:'',
    data(){
      return {

       }
    },
    props:{
      path:{
        type:String,
        default:""
      }
    },
    methods:{
      routeChange(){
        this.$router.push(this.path)
      }
    },
    components:{

    }
  }
</script>

<style scoped>
  .item{
    display: flex;
  }
  .left{
    flex: 6;
  }
  .center{
    flex: 40;
  }
  .right{
    flex: 4;
    color: #909090;
  }
  img{
    display: block;
    margin: 0 auto;
  }
</style>
